package com.pro.entity;

import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/*
    * 刘弘禹
    * 2021/11/3
    * 商品分类
    * */
@Data
public class ProductCategroy {
    private Integer  categroyId;//分类id
    private Integer parentId;//上级分类id
    private Integer sort;//排序
    private String title;//分类名称
    private Integer categroy;//状态
    private String createId;//创建人
    private Date createDate;//创建时间
    private String updateId;//更新人
    private Date updateDate;//更新时间

   // private List<ProductCategroy> children = new ArrayList<>();//下级元素

    public ProductCategroy() {
    }

    public Integer getCategroyId() {
        return categroyId;
    }

    public void setCategroyId(Integer categroyId) {
        this.categroyId = categroyId;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getCategroy() {
        return categroy;
    }

    public void setCategroy(Integer categroy) {
        this.categroy = categroy;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public ProductCategroy(Integer categroyId, Integer parentId, Integer sort, String title, Integer categroy, String createId, Date createDate, String updateId, Date updateDate) {
        this.categroyId = categroyId;
        this.parentId = parentId;
        this.sort = sort;
        this.title = title;
        this.categroy = categroy;
        this.createId = createId;
        this.createDate = createDate;
        this.updateId = updateId;
        this.updateDate = updateDate;
    }
}
